<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <!-- 将1998-2008之间的闰年年份输出 -->
    <script>
        for(var i=1998;i<=2008;i++){
            if(i%4==0 && i%100!=0 || i%400==0){
                console.log(`闰年年份：${i}`);
            }
            }
            
    </script>
</body>
</html>